net/netip.Prefix.ip (field)
21 uses
net/netip (current package)
netip.go#L1260: ip Addr
netip.go#L1281: ip: ip.withoutZone(),
netip.go#L1287: func (p Prefix) Addr() Addr { return p.ip }
netip.go#L1302: func (p Prefix) IsSingleIP() bool { return p.IsValid() && p.Bits() == p.ip.BitLen() }
netip.go#L1388: m, _ := p.ip.Prefix(p.Bits())
netip.go#L1403: if f1, f2 := p.ip.BitLen(), ip.BitLen(); f1 == 0 || f2 == 0 || f1 != f2 {
netip.go#L1415: return uint32((ip.addr.lo^p.ip.addr.lo)>>((32-p.Bits())&63)) == 0
netip.go#L1420: return ip.addr.xor(p.ip.addr).and(mask6(p.Bits())).isZero()
netip.go#L1436: if p.ip.Is4() != o.ip.Is4() {
netip.go#L1453: if p, err = p.ip.Prefix(minBits); err != nil {
netip.go#L1456: if o, err = o.ip.Prefix(minBits); err != nil {
netip.go#L1459: return p.ip == o.ip
netip.go#L1474: if p.ip.z == z4 {
netip.go#L1475: b = p.ip.appendTo4(b)
netip.go#L1477: if p.ip.Is4In6() {
netip.go#L1479: b = p.ip.Unmap().appendTo4(b)
netip.go#L1481: b = p.ip.appendTo6(b)
netip.go#L1495: switch p.ip.z {
netip.go#L1549: return p.ip.String() + "/" + itoa.Itoa(p.Bits())
![]() |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |